<?php
	session_start();
	require_once("bb_functions.php");
	require_once("db_functions.php");
	echo $_SESSION['user'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BBTools Romania</title>
<link type="text/css" href="CSS/main.css" rel="stylesheet"  />
</head>

<body>
<div id="layout_wrapper">
	<div id="header_container">
    	<?php include_once("components/header.php"); ?>
    </div>
    
    <div id="main_container">
    <?php 
		/*if($_GET['action'] == "index") { 
			echo "bla " . $_SESSION['user'];
		}*/
		if(!isset($_SESSION['user'])) {
			include_once("components/login.php"); 
		  } else { 
		  	if(isset($_GET['action'])) { 
				$action = $_GET['action'];
			} else {
				$action = "index";
			}
		  	switch($action) { 
				case "index":
					include_once("components/navigation.php");
					break;
			
			}
		  }
	?>	
    </div>
    
    <div id="footer_container">
    	
    </div>
    
</div>


</body>
</html>